const path = require('path')

module.exports = {
	mode: "production", // 生产环境,代码会压缩

	entry: "./src/script/main.js",

	output: {

    	path: path.resolve(__dirname, "dist"), // string
    	filename: "bundle.js"
    },

  	module: {

    	rules: [
    		{
    			test: /\.css$/,
                exclude: [
                  path.resolve(__dirname, "node_modules")
                ],
        		use: [ 'style-loader', 'css-loader' ]
    		}
    	]
    }

   
}